package com.apps.MobileSms.Aliyun.model.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;

/**
 * @description: 发送短信所需参数
 * @author: YuXD
 * @create: 2018-11-24 11:44
 **/
//@NoArgsConstructor
@Data
public class SmsTemplateVO implements Serializable {

    private static final long serialVersionUID = -4396934073688138129L;
    /**
     * 短信签名,默认为云父巴巴
     */
    private String signName = "云父巴巴";

    /**
     * 短信用途
     */
    private String byName;

    /**
     * 短信模板编号
     */
    private String templateCode;

    /**
     * 接收短信的手机号码
     */
    private String phoneNumbers;

    /**
     * 模板参数
     */
    private Map<String,String> templateParam;

    /**
     * 是境内短信还是境外短信，true:境内，false:境外
     */
    private boolean isHomeOrAbroad = true;


    public SmsTemplateVO(String templateCode, String phoneNumbers, String byName) {
        this.templateCode = templateCode;
        this.phoneNumbers = phoneNumbers;
        this.byName = byName;
    }

    public SmsTemplateVO(String templateCode, String phoneNumbers, Map<String,String> templateParam) {
        this.templateCode = templateCode;
        this.phoneNumbers = phoneNumbers;
        this.templateParam = templateParam;
    }

    public SmsTemplateVO()
    {

    }
}
